﻿@{
    Layout = null;
}
@*基础自建模块*@
<link href="~/Content/TraceSource/BasicOriginModule.css" rel="stylesheet" />
    <div class="flex-container">
        <div class="flex-item" id="left">
            <div id="catalog_top">溯源管理</div>
            <ul id="catalog">
               <!--占位符-->
            </ul>
            <button id="add_li" onclick="$.MGJ.BasicOriginModule.AddNewOrigin()" class="btn btn-default">新建管理</button>
        </div>
        <div class="flex-item" id="right">
            <div id="right_children">
                <div class="row">
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
                        <button class="btn btn-group-xs btn-success"  onclick="$.MGJ.BasicOriginModule.Dialog_AddColumn()"><i class="fa fa-plus fa-fw m-r-xs"></i>添加名称</button>
                        <button class="btn btn-group-xs btn-success" onclick="$.MGJ.BasicOriginModule.AddTableRows()"><i class="fa fa-plus fa-fw m-r-xs"></i>添加行数</button>
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 text-right">
                        <select class="form-control" id="selTableCol" style="display:inline-block;width:35%">
                           
                        </select>
                        <input class="form-control" id="searchKey" style="display:inline-block;width:40%" />
                        @*<input type="button" value="查询" onclick="$.MGJ.BasicOriginModule.GetTableRowsData($.MGJ.BasicOriginModule.TableRowsBinding)" class="btn btn-group-xs btn-success">*@
                        <button class="btn btn-group-xs btn-success" onclick="$.MGJ.BasicOriginModule.GetTableRowsData($.MGJ.BasicOriginModule.TableRowsBinding)">
                            <i class="glyphicon glyphicon-search"></i>
                            查询
                        </button>
                    </div>
                </div>
                <div class="row" id="titleMess" style="display:block;">
                    <h2 class="text-center" style="color:gray;">请在左侧选择一个模板</h2>
                </div>
                <table id="the_table" class="table table-hover table-bordered ctltable">
                    <tbody>
                        <tr id="tr_1">
                            @*<th class="text-center">序号</th>*@
                        </tr>
                        <tr id="tr_2"></tr>
                    </tbody>
                </table>
                <table id="table_right" class="table table-bordered" style="display:none">
                    <tbody>
                        <tr id="op_1">
                            <th class="text-center">操作</th>
                        </tr>
                        @*<tr><td class="td_height"><button class="btn btn-sm btn-primary margin_right revise">修改</button><button class="btn btn-danger btn-sm del">删除</button></td></tr>*@
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <!--模态框 弹出框-->
    @*<div role="dialog" class="modal" id="layer">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button class="close" data-dismiss="modal" style="display: block;">
                        <span>&times;</span>
                    </button>
                    <div id="layer_body" class="text-center">
                        <div id="layer_add_body"></div>
                        <button class="btn btn-sm btn-primary" id="layer_btn" onclick="LayerAdd()">
                            <i class="fa fa-plus fa-fw m-r-xs"></i>
                            添加
                        </button>
                    </div>
                </div>
                <div class="modal-body text-right">
                    <button class="btn btn-danger btn-sm" onclick="UpDateTable()" data-dismiss="modal">保存</button>
                    <button class="btn btn-primary btn-sm" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>*@



<script src="~/Scripts/MGJJS/TraceSource/PageOperation/BasicOriginModule.js"></script>
<script>
    //加载
    $.MGJ.BasicOriginModule.Init();
</script>